package com.dhcy.mqtt.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcy.mqtt.bean.TreeResource;
import com.dhcy.mqtt.model.SysResource;
import com.dhcy.mqtt.model.SysUser;
import com.dhcy.mqtt.par.ht.*;
import com.dhcy.mqtt.result.ht.TableResultData;
import com.dhcy.mqtt.util.AppResultData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@SuppressWarnings("rawtypes")
public interface SysUserService extends IService<SysUser> {

	List<SysResource> getResourceListByusername(String username);

	TableResultData authList(AuthListPar authListPar);

	TableResultData authRoleList(AuthRoleListPar authRoleListPar);

	TableResultData menuManageList(MenuManageListPar menuManageListPar);

	AppResultData authRoleTree();
	//管理员编辑
	AppResultData UpauthRole(UPauthRolePar upauthRolePar);
	//管理员修改状态
	AppResultData OFFauthRole(OFFauthRolePar offauthRolePar);

	//管理员删除
    AppResultData DELauthRole(DELauthRolePar delauthRolePar);

	//删除角色
	 AppResultData delRole(DelRolePar delRolePar);

	AppResultData setRole(SetRolePar setRolePar);
	//编辑角色
	AppResultData upRole(UpRolePar upRolePar);

	AppResultData UPMenu(UPMenuPar uPMenuPar);
	//添加角色
	AppResultData addRole(AddRolePar addRolePar);
	//管理员添加
	AppResultData ADDauthRole(ADDauthRolePar addauthRolePar);

	List<TreeResource> getTreeResourceListByusername(String id);

	AppResultData AddMenuTree();
	//ueditor配置
	Object controller(HttpServletRequest httpServletRequest, String action);

	PicUpresult upimgs(MultipartFile file, String foldName);

	AppResultData modifyHtPass(String oldPass,String newPass);

	AppResultData getTopMenuList();
}
